package com.diligent.cloud.printer.client.resource;

import com.diligent.cloud.primary.data.model.Result;
import com.diligent.cloud.printer.client.model.TemplateData;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;

@RequestMapping("/printer")
public interface PrinterResource {
    @ApiOperation(value = "设置打印模板和数据", httpMethod = "POST", response = com.canny.commons.model.Result.class)
    @PostMapping("/setTemplateAndData")
    ResponseEntity<Result> setTemplateAndData(String dataJson,
                                                String dataUrl,
                                                String exportType,
                                                String templateUrl,
                                                String templateXML
                                                ,MultipartFile templateFile);
}
